<?php

Raise::load('core.RaiseStaticClass');
Raise::load('core.IRaiseInitializable');
Raise::load('core.helper.routing.RaiseUrlRouteManager');
Raise::load('core.helper.routing.RaiseUrlRoute');

/**
 * AppRouter class
 * provides global changes of RaisePostback in application without being directly
 * affected by framework upgrades and changes. All application postback controllers should
 * inherit from AppPostback instead of RaisePostback
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.App
 * @since 1.2
 */
class AppRouter extends RaiseUrlRouteManager implements IRaiseInitializable {

    public static function initialize() {
        
        /**
         * Add your routing here. 
         * Use self::add($key, $raiseUrlRoute) to add a new entry
         */
        
        self::add('home', new RaiseUrlRoute('', 'IndexPage'));
        self::add('scaffold', new RaiseUrlRoute('scaffold', 'ScaffoldTestPage'));
    }

}
